# coding=utf-8
"""
Author: Mr.夏末
@Function: 图片下载
"""
import requests

#图片下载 'Content-Type': 'image/jpeg'
res = requests.get("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F1114%2F0H120155P2%2F200H1155P2-6-1200.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1664107468&t=898e5ed3abe8880a347136a884914a8d")
# print(res.content)
# print(res.headers)
#打开一个文件
f = open('../lib/mv.jpg',mode='wb')
f.write(res.content)
f.close()
